package appexception;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @program: wsn_blog
 * @description
 * @author:王松年
 * @creat: 2021-07-11 12:06:16
 **/
@Setter
@Getter
@ToString
public class AppException extends RuntimeException{
    private String code;

    public AppException( String code,String message) {
        super(message);
        this.code = code;
    }

    public AppException(String code,String message, Throwable cause ) {
        super(message, cause);
        this.code = code;
    }
}
